<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<link rel="shortcut icon" type="image/x-icon" href="static/favicon.ico">
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<title>
			<%= htmlWebpackPlugin.options.title %>
		</title>
		<script>
			document.addEventListener('DOMContentLoaded', function() {
				document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
			})
		</script>
		<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
		
		
		<script>
			function parseUrl() {
			   let vars = location.search.split("&");
			   let res = {}
			   vars.forEach((item, i) => {
				   let kvArr = item.split("=");
				   res[kvArr[0]] = kvArr[1]
			   })
			
			   return res;
			}
		
		
			try {
				let app = {
					m: '{$m}',
					uniacid: '{$uniacid}',
					is_auth: '{$is_auth}',
				}

				uni.setStorageSync('app', JSON.stringify(app))
				
				const {origin, pathname, search, hash} = location
				let searchArr = parseUrl()
				
				if(!hash && !!searchArr.hash) {
					location.href = origin + pathname + search + decodeURIComponent(searchArr.hash)
				}
			} catch {
				let app = {}
			}
		
		</script>
		
	</head>
	<body>
		<noscript>
			<strong>本站点必须开启JavaScript才能运行</strong>
		</noscript>
		<div id="app"></div>
	</body>
</html>
